package micro.beauty.user.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import micro.beauty.common.mybatis.Condition;
import micro.beauty.common.mybatis.PageQuery;
import micro.beauty.user.entity.SysUser;
import micro.beauty.user.mapper.SysUserMapper;
import org.springframework.stereotype.Service;
/**
* @Author:         Liuliya
* @CreateDate:     2020/10/15 20:35
*/
@Service
public class SysUserService extends ServiceImpl<SysUserMapper, SysUser> {


    public Page findUserPage(Integer pageNo, Integer pageSize) {
        PageQuery query = PageQuery.builder().current(pageNo).size(pageSize).build();
        return this.page(Condition.getPage(query), new QueryWrapper<>());
    }
}
